<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="module">
    import Promisee from './index.js';
    const p = new Promisee(function (resolve,reject){
        setTimeout(()=>{
            resolve(100);
        },200)
        // resolve(100);
        // reject(200);
        // throw 'xxx';
    }).then((value)=>{

    },(value)=>{
        return value;
    }).then((value)=>{
        console.log(1)
    },(value)=>{
        return value;
    }).then((value)=>{
        console.log(2,value)
    },(value)=>{
        return value;
    })

    console.log(p);
</script>
</body>
</html>